﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using CRM.MODEL.Ali;

namespace CRM.BLL.Ali
{
    public class Ali_SupplierB
    {
        #region Ali_Supplier
        /// <summary>
        /// 获取Ali_Supplier信息
        /// </summary>
        public DataTable GetAli_Supplier(ref CRM.MODEL.Ali.GetAli_Supplier stu)
        {
            CRM.DAL.Ali.Ali_SupplierD obj = new CRM.DAL.Ali.Ali_SupplierD();
            DataTable dt = obj.ExecuteGetAli_Supplier(ref stu);
            obj.Dispose();
            return dt;
        }

        /// <summary>
        /// 编辑Ali_Supplier信息
        /// </summary>
        public int EditAli_Supplier(ref CRM.MODEL.Ali.EditAli_Supplier stu)
        {
            CRM.DAL.Ali.Ali_SupplierD obj = new CRM.DAL.Ali.Ali_SupplierD();
            int effectRow = obj.ExecuteEditAli_Supplier(ref stu);
            obj.Dispose();
            return effectRow;
        }
        #endregion
        public bool IsExist(string loginAccount)
        {
            var stu = new GetAli_Supplier {LOGINACCOUNTVALUE = loginAccount};
            var dt = GetAli_Supplier(ref stu);
            return dt != null && dt.Rows.Count > 0;
        }
    }
}
